.raceBar {
    position: relative;
    height: 230rem;
    background: #1d1d1d;

    .back {
        position: absolute;
        top: 4rem;
        left: 16rem;
        font-size: 18rem;
        z-index: 1;
    }

    .title {
        position: absolute;
        top: 0rem;
        left: 50%;
        z-index: 1;
        transform: translateX(-50%);
        font-size: 14rem;
        color: rgba(255, 255, 255, 0.60);
        font-weight: 500;

        &>span {
            color: #FF6F1E;
            font-weight: 600;
        }
    }

    .realRoad {
        position: absolute;
        top: 0;
        width: 100%;
        .realWrap {
            width: 100%;
            height: 230rem;
            position: relative;
            overflow: hidden;
            .realBg {
                position: absolute;
                top: 0;
                left: 0;
                width: 1000%;
                height: 100%;
                display: flex;
                flex-direction: row;
                .left {
                    height: 100%;
                    width: 123rem;
                    background: url('@/assets/images/Race/leftBg.png') left top no-repeat;
                    background-size: auto 100%;
                }
                .center {
                    width: calc(100% - 123rem - 106rem);
                    height: 100%;
                    background: url('@/assets/images/Race/centerBg.png') repeat-x;
                    background-size: auto 100%;
                }
                .right {
                    height: 100%;
                    width: 106rem;
                    background: url('@/assets/images/Race/rightBg.png') no-repeat;
                    background-size: auto 100%;
                }
            }
            .realHouse {
                position: absolute;
                width: 80rem;
                left: 6%;
            }
        }
    }

    .leftRank {
        position: absolute;
        left: 0;
        bottom: 25rem;

        .rankItem {
            width: 20rem;
            height: 20rem;
            text-align: center;
            line-height: 20rem;
            border-radius: 0 4rem 4rem 0;
            color: #FFF;

            &.top {
                clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);

                &:first-of-type {
                    width: 40rem;
                }

                &:nth-of-type(2) {
                    width: 34rem;
                }

                &:nth-of-type(3) {
                    width: 28rem;
                }

            }

            &+.rankItem {
                margin-top: 2rem;
            }
        }

        .fade-move,
        .fade-enter-active,
        .fade-leave-active {
            transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
        }

        .fade-enter-from,
        .fade-leave-to {
            opacity: 0;
            transform: scaleY(0.01) translate(30px, 0);
        }

        .fade-leave-active {
            position: absolute;
        }
    }

    .raceRecord {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50%;
        height: 180rem;
        background-color: #FFF;

        .record1 {
            .recordHeader {
                height: 29rem;
                background: #343C4B;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;

                img {
                    height: 19rem;
                }

                p {
                    margin-left: 4rem;
                    color: #C1C4E0;
                    font-size: 12rem;
                    font-weight: 500;
                }
            }

            .recordContent {
                .rankList {
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    margin-top: 6rem;

                    .rankItem {
                        width: 18rem;
                        height: 18rem;
                        border-radius: 4rem;
                        border: 1rem solid transparent;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        color: #FFF;

                        &+.rankItem {
                            margin-left: 2rem;
                        }
                    }
                }

                .recordTable {
                    padding: 0 6rem;

                    .row {
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        margin-top: 4rem;

                        &+.row {
                            border-top: 1rem solid #B7C5D3;
                        }

                        .column {
                            width: 20rem;
                            height: 18rem;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            color: #D5DCEA;
                            font-size: 12rem;

                            &.rank1 {
                                color: #F2A42D;
                            }

                            &.rank2 {
                                color: #85A6C8;
                            }

                            &.rank3 {
                                color: #C09767;
                            }
                        }
                    }
                }
            }
        }

        .record2 {
            .recordHeader {
                height: 29rem;
                background: #343C4B;
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;

                img {
                    height: 19rem;
                }

                p {
                    margin-left: 4rem;
                    color: #C1C4E0;
                    font-size: 12rem;
                    font-weight: 500;
                }
            }

            .recordContent {
                .rankList {
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    margin-top: 6rem;

                    .rankItem {
                        width: 18rem;
                        height: 18rem;
                        border-radius: 4rem;
                        border: 1rem solid transparent;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        color: #FFF;

                        &+.rankItem {
                            margin-left: 2rem;
                        }
                    }
                }

                .recordTable {
                    padding: 0 6rem;
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;

                    .row {
                        margin-top: 6rem;

                        .column {
                            margin-top: 3rem;
                            width: 20rem;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            align-items: center;
                            color: #757E88;
                            font-size: 12rem;

                            &>img {
                                height: 20rem;
                            }

                            &>span {
                                margin-top: 2rem;
                            }
                        }
                    }
                }
            }
        }

        .record3 {
            .recordHeader {
                height: 29rem;
                background: #343C4B;
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;

                img {
                    height: 19rem;
                }

                p {
                    margin-left: 4rem;
                    color: #C1C4E0;
                    font-size: 12rem;
                    font-weight: 500;
                }
            }

            .recordContent {
                .recordTable {
                    padding: 0 6rem;

                    .row {
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        margin-top: 8rem;

                        .column {
                            display: flex;
                            flex-direction: row;
                            justify-content: center;
                            align-items: center;
                            color: #757E88;
                            font-size: 12rem;

                            &>img {
                                height: 20rem;
                            }

                            .num {
                                margin-left: 2rem;
                                width: 18rem;
                                height: 18rem;
                                border-radius: 4rem;
                                border: 1rem solid transparent;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                color: #FFF;
                            }
                        }
                    }
                }
            }
        }
    }

    .timeStart {
        position: absolute;
        right: 0;
        bottom: 8rem;
        width: 137rem;
        height: 36rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-size: 12rem;
        color: #97471A;
        padding: 0 4rem;
        background-image: url('@/assets/images/Race/startTimeBg.png');
        background-repeat: no-repeat;
        background-size: cover;

        p {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
        }

        span {
            font-size: 24rem;
            font-weight: 700;
            color: #8B3A0C;
            margin-left: 8rem;
        }
    }
}

// 赛道
.raceRoad {
    height: 80rem;
    background: #4AA328;
    display: flex;
    flex-direction: row;

    .startLeft {
        background: #343C4B;
        width: 26rem;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        writing-mode: vertical-lr;
        color: #FFF;
    }

    .roads {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        flex: 1;
        position: relative;

        .road {
            flex: 1;
            position: relative;

            &+.road {
                border-top: 1rem solid #45872B;;
            }

            .round {
                position: absolute;
                top: -2rem;
                width: 11rem;
                height: 11rem;
                line-height: 10rem;
                border-radius: 50%;
                z-index: 1;
                animation: left 10s ease-in-out;
                font-size: 10rem;
                color: #FFF;
                font-weight: 700;
                text-align: center;
            }
        }

        .endRight {
            right: 10%;
            position: absolute;
            width: 6rem;
            background-color: #45872B;
            height: 100%;
        }
    }
}

.road-enter-active{
    transition: all 0.3s ease-in-out;
}

.road-enter-from {
    transform: translateY(-30px);
    opacity: 0;
}

// 排名
.rankThree {
    background-image: url('@/assets/images/Race/rankbg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    position: relative;
    height: 220rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    overflow: hidden;

    .back {
        position: absolute;
        top: 18rem;
        left: 16rem;
        font-size: 20rem;
    }

    .title {
        position: absolute;
        top: 16rem;
        left: 50%;
        transform: translateX(-50%);
        padding: 6rem 12rem;
        border-radius: 14.5rem;
        border: 1rem solid #FFF;
        background: rgba(255, 255, 255, 0.20);
        backdrop-filter: blur(4rem);
        font-size: 14rem;
        color: rgba(255, 255, 255, 0.60);
        font-weight: 500;

        &>span {
            color: #FF6F1E;
            font-weight: 600;
        }
    }

    .one,
    .two,
    .three {
        margin-bottom: -4rem;
        display: flex;
        flex-direction: column;
        align-items: center;

        .crown {
            margin-bottom: -2rem;
        }

        .box {
            color: #FFF;
            margin-bottom: -10rem;
            z-index: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .ped {
            width: 100%;
        }
    }

    .one {
        width: 100rem;

        .crown {
            width: 33rem;
        }

        .box {
            width: 48rem;
            height: 48rem;
            border-radius: 10rem;
            border: 2rem solid #C71436;
            background: #FF2D55;
            font-size: 32rem;
        }
    }

    .two {
        width: 84rem;

        .crown {
            width: 27rem;
        }

        .box {
            width: 40rem;
            height: 40rem;
            border-radius: 8rem;
            border: 2rem solid #5A34C7;
            background: #8E66FF;
            font-size: 26rem;
        }

    }

    .three {
        width: 84rem;

        .crown {
            width: 27rem;
        }

        .box {
            width: 84rem;
            width: 40rem;
            height: 40rem;
            border-radius: 8rem;
            border: 2rem solid #C34D20;
            background: #FF7845;
            font-size: 26rem;

        }
    }

    .timeStart {
        position: absolute;
        right: 0;
        top: 46rem;
        width: 137rem;
        height: 36rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-size: 12rem;
        color: #97471A;
        padding: 0 4rem;
        background-image: url('@/assets/images/Race/startTimeBg.png');
        background-repeat: no-repeat;
        background-size: cover;

        p {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
        }

        span {
            font-size: 24rem;
            font-weight: 700;
            color: #8B3A0C;
            margin-left: 8rem;
        }
    }
}